package org.dromara.system.controller.system;

import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.system.domain.vo.HomePageLotteryInfoVo;
import org.dromara.system.domain.vo.HomePagePointsVo;
import org.dromara.system.domain.vo.MachineModelVo;
import org.dromara.system.service.IndexInfoService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/system/index")
public class IndexInfoController {

    private final IndexInfoService indexInfoService;

    //查询今日收益积分 和总收益积分
    @PostMapping("/homePagePoints")
    public R<HomePagePointsVo> homePagePoints() {
        return  R.ok(indexInfoService.homePagePoints())  ;
    }


    //查询抽奖相关信息
    @PostMapping("/homePageLotteryInfo")
    public R<HomePageLotteryInfoVo> homePageLotteryInfo() {
        return  R.ok(indexInfoService.homePageLotteryInfo())  ;
    }

}
